package com.yc.fresh.bean;

import java.util.Objects;

/**
 * @Auther: HuYang
 * @Date: 2022/11/28 - 11 - 28 - 21:59
 * @Description: com.yc.fresh.bean
 * @version: 1.0
 */
public class OrderitemInfo {
    private Long ino;
    private String ono;
    private Long pno;
    private String pname;
    private Double price;
    private String intro;
    private String pic;
    private String unit;
    private String weight;
    private Integer nums;
    private Integer status;

    @Override
    public String toString() {
        return "OrderitemInfo{" +
                "ino=" + ino +
                ", ono='" + ono + '\'' +
                ", pno=" + pno +
                ", pname='" + pname + '\'' +
                ", price=" + price +
                ", intro='" + intro + '\'' +
                ", pic='" + pic + '\'' +
                ", unit='" + unit + '\'' +
                ", weight='" + weight + '\'' +
                ", nums=" + nums +
                ", status=" + status +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof OrderitemInfo)) return false;
        OrderitemInfo that = (OrderitemInfo) o;
        return Objects.equals(ino, that.ino) && Objects.equals(ono, that.ono) && Objects.equals(pno, that.pno) && Objects.equals(pname, that.pname) && Objects.equals(price, that.price) && Objects.equals(intro, that.intro) && Objects.equals(pic, that.pic) && Objects.equals(unit, that.unit) && Objects.equals(weight, that.weight) && Objects.equals(nums, that.nums) && Objects.equals(status, that.status);
    }

    @Override
    public int hashCode() {
        return Objects.hash(ino, ono, pno, pname, price, intro, pic, unit, weight, nums, status);
    }

    public Long getIno() {
        return ino;
    }

    public void setIno(Long ino) {
        this.ino = ino;
    }

    public String getOno() {
        return ono;
    }

    public void setOno(String ono) {
        this.ono = ono;
    }

    public Long getPno() {
        return pno;
    }

    public void setPno(Long pno) {
        this.pno = pno;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getWeight() {
        return weight;
    }

    public void setWeight(String weight) {
        this.weight = weight;
    }

    public Integer getNums() {
        return nums;
    }

    public void setNums(Integer nums) {
        this.nums = nums;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
